package cn.exempale.mscapplication.model.db.entity;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;

import java.util.Date;


@Entity(tableName = "result", primaryKeys = {"task_id", "speak_time"})
public class ResultEntity {

    @NonNull
    @ColumnInfo(name = "task_id")
    private String taskId; // 转写任务id
    @ColumnInfo(name = "speak_time")
    @NonNull
    private Date speakTime; // 说话时间
    private String speaker; // 说话人
    private String content; // 说话内容

    @NonNull
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(@NonNull String taskId) {
        this.taskId = taskId;
    }

    @NonNull
    public Date getSpeakTime() {
        return speakTime;
    }

    public void setSpeakTime(@NonNull Date speakTime) {
        this.speakTime = speakTime;
    }

    public String getSpeaker() {
        return speaker;
    }

    public void setSpeaker(String speaker) {
        this.speaker = speaker;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
